package gui;
import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;


class PainelImagem extends JPanel
{
	BufferedImage img;
	
	public PainelImagem(BufferedImage i)
	{
		img = i;
	}	  
	
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		if (img != null)
			g.drawImage(img,0,0,this);
	}
}

